package com.antrom.devlo;

public class Conversion {

    public Unite uniteDepart;
    public Unite uniteArrivee;
    public Quantite estConverti;
    public Integer taux;

    public Conversion(Unite uniteDepart, Unite uniteArrivee, Quantite qte) {
        this.uniteDepart = uniteDepart;
        this.uniteArrivee = uniteArrivee;
        this.estConverti = qte;
    }

    public void convertir() {
        this.uniteArrivee.valeur = this.uniteDepart.valeur*this.estConverti.nombre*this.taux;
    }
}